﻿using System;

namespace Lib.MonitLogs.Entitys;
/// <summary>
/// 
/// </summary>
public class LogEntity {
    /// <summary>
    /// 创建对象
    /// </summary>
    public static LogEntity Create() {
        var Re = new LogEntity {
            Date = DateTime.Now
        };
        return Re;
    }
    /// <summary>
    /// 
    /// </summary>
    public LogEntity() { }
    /// <summary>
    /// 时间
    /// </summary>
    public DateTime? Date { get; set; }
    /// <summary>
    /// 描述
    /// </summary>
    public string Description { get; set; }
    /// <summary>
    /// 信息
    /// </summary>
    public string Message { get; set; }
    /// <summary>
    /// IP
    /// </summary>
    public string IP { get; set; }
    /// <summary>
    /// 网址
    /// </summary>
    public string Page { get; set; }
    /// <summary>
    /// 请求类型（GET、POST、PUT、DELETE）
    /// </summary>
    public string RequestType { get; set; }
    /// <summary>
    /// POST数据
    /// </summary>
    public string POST { get; set; }
    /// <summary>
    /// 浏览器标识
    /// </summary>
    public string UserAgent { get; set; }
    /// <summary>
    /// 用户（帐号、用户名、手机号）
    /// </summary>
    public string LoginCode { get; set; }
    /// <summary>
    /// 用户主键
    /// </summary>
    public string UID { get; set; }
}

